package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 平台数据发放记录表
 * </p>
 *
 * @author leehao
 * @since 2019-07-16
 */
public class SysDealDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer cid;
    
    /** 代理ID */
    private Integer agid;

    /**
     * 统计当天该用户总贡献值
     */
    private BigDecimal totalDonate;

    /**
     * 该用户转换后的单元共享值
     */
    private BigDecimal unitShare;

    /**
     * 该用户所占当天的比例
     */
    private BigDecimal customerScale;

    private Date createTime;

    /**
     * 0未发放 1已发放 同步sys_deal_data状态
     */
    private Integer status;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 业务区分 1用户账户插入 2代理账户插入
     */
    private Integer type;

    /**
     * 发放时备注
     */
    private String remark;
    
    

    public Integer getAgid() {
		return agid;
	}

	public void setAgid(Integer agid) {
		this.agid = agid;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public BigDecimal getTotalDonate() {
        return totalDonate;
    }

    public void setTotalDonate(BigDecimal totalDonate) {
        this.totalDonate = totalDonate;
    }
    public BigDecimal getUnitShare() {
        return unitShare;
    }

    public void setUnitShare(BigDecimal unitShare) {
        this.unitShare = unitShare;
    }
    public BigDecimal getCustomerScale() {
        return customerScale;
    }

    public void setCustomerScale(BigDecimal customerScale) {
        this.customerScale = customerScale;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "SysDealDetail{" +
        "id=" + id +
        ", cid=" + cid +
        ", totalDonate=" + totalDonate +
        ", unitShare=" + unitShare +
        ", customerScale=" + customerScale +
        ", createTime=" + createTime +
        ", status=" + status +
        "}";
    }
}
